import request from "@/utils/request";
// 调用权限
export default {
  getList(data) {
    return request({
      url: "/api/huiyi/",
      method: "get",
      params: data
    });
  },
  getHuiyiChoiceList(data) {
    return request({
      url: "/api/huiyi/choice/",
      method: "get",
      params: data
    });
  },
  toAdd(data) {
    return request({
      url: "/api/huiyi/",
      method: "post",
      data
    });
  },
  toDelete(id) {
    return request({
      url: "/api/huiyi/" + id + "/",
      method: "delete"
    });
  },
  toEdit(id, data) {
    return request({
      url: "/api/huiyi/" + id + "/",
      method: "put",
      data
    });
  },
  toEditAgain(id, data) {
    return request({
      url: "/api/huiyi/" + id + "/again/",
      method: "put",
      data
    });
  },
  detailEditMeet(id, data) {
    return request({
      url: "/api/huiyi/" + id + "/edit/",
      method: "put",
      data
    });
  },
  getDetailInfoById(id,data){
    return request({
      url: "/api/huiyi/" + id + "/",
      method: "get",
      params: data
    });
  },
  getMeetroomSimpleList(data) {
    return request({
      url: "/api/huiyi/room/simple/",
      method: "get",
      params: data
    });
  },
  getMeetIsApply(data) {
    return request({
      url: "/api/huiyi/is_apply/",
      method: "get",
      params: data
    });
  },
  getMeetNotice(UUID,data) {
    return request({
      url: "/api/huiyi/"+UUID+"/notice/",
      method: "get",
      params: data
    });
  },
  sendMeetNotice(UUID,data) {
    return request({
      url: "/api/huiyi/"+UUID+"/notice/",
      method: "post",
      data
    });
  },
  editMeetNotice(UUID,data) {
    return request({
      url: "/api/huiyi/"+UUID+"/notice/",
      method: "put",
      data
    });
  },
  cancelMeet(UUID,data) {
    return request({
      url: "/api/huiyi/"+UUID+"/cancel/",
      method: "get",
      params: data
    });
  },
  getMeetManage(data) {
    return request({
      url: "/api/huiyi/",
      method: "get",
      params: data
    });
  },
  sendNotice(id,data){
    return request({
      url: "/api/huiyi/"+id+"/send/",
      method: "post",
      data
    });
  },
  setMeetEnd(id,data){
    return request({
      url: "/api/huiyi/"+id+"/end/ ",
      method: "post",
      data
    });
  },
  getMeetAttend(id,data){
    return request({
      url: "/api/huiyi/"+id+"/attend/",
      method: "get",
      params: data
    });
  },
};
